 var host = 'http://'+location.hostname+':'+(location.port=="8100"?"80":location.port);
// var host = 'http://127.0.0.1:8181';
var ctx = host+'/akj-cms';

var qrcodeUrl="http://www.arkj168.cn/aierkeji-site/b2c-site/#/home";
var loginUrl = ctx+'/login/do'
var APIs = {
    alipay:{
        add:ctx+'/alipay/add',
        copy:ctx+'/alipay/copy',
        update:ctx+'/alipay/update',
        delete:ctx+'/alipay/delete',
        enableLife:ctx+'/alipay/enableLife',
        query:ctx+'/alipay/query',
        querySrchLifes:ctx+'/alipay/querySrchLifes',
        getRelateLifes:ctx+'/alipay/getRelateLifes'
    },
    order:{
        config:ctx+'/order/getConfig',
        list:ctx+'/order/getOrderList',
        getOrderDetail:ctx+'/order/getOrderDetail',
        download:ctx+'/order/download',
        upload:ctx+"/order/uploadOrderCsv",
        report:ctx+"/order/report",
        sent:ctx+"/order/sent",
        issue:ctx+"/order/issue",
        cancel:ctx+"/order/cancel",
        orderStatusList:ctx+"/order/getOrderStatusList",
        delete:ctx+"/order/delete",
        checkHasNewOrderReord:ctx+"/order/checkHasNewOrderReord",
        
    },aliorder:{
        list:ctx+'/aliOrder/list',
        query:ctx+'/aliOrder/query'
    },
    product:{
        add:ctx+'/product/add',
        delete:ctx+'/product/delete',
        findBySales:ctx+'/product/findBySales',
        edit:ctx+'/product/edit',
        query:ctx+'/product/query'
    },
    auser:{
        initPageData:ctx+'/auser/init-page-data',
        delete:ctx+'/auser/delete',
        edit:ctx+'/auser/edit',
        resetPwd:ctx+'/auser/resetPwd',
        changePwd:ctx+'/auser/changePwd',
        addLifeMgr:ctx+'/auser/addLifeMgr',
        addSales:ctx+'/auser/addSales',
        batchAddLifeId:ctx+'/auser/batchAddLifeId'
    },
    merchants:{
        list:ctx+'/merchants/list',  
        save:ctx+'/merchants/save',  
        update:ctx+'/merchants/update',  
        delete:ctx+'/merchants/delete',  
        start:ctx+'/merchants/start',  
    },
    logoConfig:{
        save:ctx+'/logoConfig/save',
        update:ctx+'/logoConfig/update',
        query:ctx+'/logoConfig/query',
        delete:ctx+'/logoConfig/delete'

    },
    black:{
        list:ctx+'/black/list',
        add:ctx+'/black/add/',
        delete:ctx+'/black/delete/',
        query:ctx+'/black/query/'

    }
}